home *** CD-ROM | disk | FTP | other *** search
/ SIGGRAPH 2002 Course Notes / SIGGRAPH 2002 - Course Notes - Disc 1.iso / pc / notes / 18 / supplemental_material / References / XHTML / xhtml11-20010531 / conformance.html < prev    next >
Encoding:
Extensible Markup Language  |  2001-05-31  |  4.3 KB  |  106 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  3. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <meta name="generator" content="HTML Tidy, see www.w3.org" />
  7. <title>XHTML 1.1 - Conformance Definition</title>
  8. <link rel="prev" type="text/html" href="introduction.html" />
  9. <link rel="next" type="text/html" href="doctype.html" />
  10. <link rel="stylesheet" type="text/css" media="screen" href="xhtml.css" />
  11. <link rel="stylesheet" type="text/css" media="screen" href="W3C-REC.css" /><?xml-stylesheet href="xhtml.css" type="text/css" media="screen" ?><?xml-stylesheet
  12. href="W3C-REC.css" type="text/css" media="screen" ?>
  13. </head>
  14. <body>
  15. <div class="navbar">[<a href="introduction.html">previous</a>]   [<a href="doctype.html">next</a>]   [<a href="Overview.html#toc">table of contents</a>] 
  16.  
  17. <hr />
  18. </div>
  19.  
  20. <h1><a id="s_conform">2.</a> Conformance Definition</h1>
  21.  
  22. <div class='subtoc'>
  23. <p><strong>Contents</strong></p>
  24.  
  25. <ul class='toc'>
  26. <li class='tocline'>2.1. <a href="#doccont" class="tocxref">Document Conformance</a> 
  27.  
  28. <ul class="toc">
  29. <li class='tocline'>2.1.1. <a href="#strict" class="tocxref">Strictly Conforming Documents</a></li>
  30. </ul>
  31. </li>
  32.  
  33. <li class='tocline'>2.2. <a href="#uaconf" class="tocxref">User Agent Conformance</a></li>
  34. </ul>
  35. </div>
  36.  
  37. <p>This section is <em>normative</em>.</p>
  38.  
  39. <p>The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in <a href= 
  40. "references.html#ref_RFC2119">[RFC2119]</a>.</p>
  41.  
  42. <h2><a id="doccont">2.1.</a> Document Conformance</h2>
  43.  
  44. <p>This version of XHTML provides a definition of strictly conforming XHTML documents, which are restricted to elements and attributes from the XHTML namespace.</p>
  45.  
  46. <h3><a id="strict">2.1.1.</a> Strictly Conforming Documents</h3>
  47.  
  48. <p>A strictly conforming XHTML 1.1 document is a document that requires only the facilities described as mandatory in this specification. Such a document must meet all the following criteria:</p>
  49.  
  50. <ol>
  51. <li>
  52. <p>The document must conform to the constraints expressed in <a href="xhtml11_dtd.html#a_xhtml11_dtd">Appendix C</a>.</p>
  53. </li>
  54.  
  55. <li>
  56. <p>The root element of the document must be <code><html></code>.</p>
  57. </li>
  58.  
  59. <li>
  60. <p>The root element of the document must designate the XHTML namespace using the <code>xmlns</code> attribute <a href="references.html#ref_xmlns">[XMLNAMES]</a>. The namespace designator for XHTML is
  61. "<code>http://www.w3.org/1999/xhtml</code>".</p>
  62. </li>
  63.  
  64. <li>
  65. <p>There must be a DOCTYPE declaration in the document prior to the root element. If present, the public identifier included in the DOCTYPE declaration must reference the DTD found in <a href= 
  66. "xhtml11_dtd.html#a_xhtml11_dtd">Appendix C</a> using its Formal Public Identifier. The system identifier may be modified appropriately.</p>
  67.  
  68. <pre>
  69. <!DOCTYPE
  70.  html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  71.  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  72. </pre>
  73. </li>
  74. </ol>
  75.  
  76. <p>Here is an example of an XHTML 1.1 document.</p>
  77.  
  78. <div class="good">
  79. <pre>
  80. <?xml version="1.0" encoding="UTF-8"?>
  81. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  82.     "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  83. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
  84.   <head>
  85.     <title>Virtual Library</title>
  86.   </head>
  87.   <body>
  88.     <p>Moved to <a href="http://vlib.org/">vlib.org</a>.</p>
  89.   </body>
  90. </html>
  91. </pre>
  92. </div>
  93.  
  94. <p>Note that in this example, the XML declaration is included. An XML declaration like the one above is not required in all XML documents. XHTML document authors are strongly encouraged to use XML
  95. declarations in all their documents. Such a declaration is required when the character encoding of the document is other than the default UTF-8 or UTF-16.</p>
  96.  
  97. <h2><a id="uaconf">2.2.</a> User Agent Conformance</h2>
  98.  
  99. <p>A conforming user agent must meet all user agent conformance requirements defined in [<a href="references.html#ref_xhtml_modularization">XHTMLMOD</a>].</p>
  100.  
  101. <hr />
  102. <div class="navbar">[<a href="introduction.html">previous</a>]   [<a href="doctype.html">next</a>]   [<a href="Overview.html#toc">table of contents</a>]</div>
  103. </body>
  104. </html>
  105.  
  106.